package com.spring.gll.model;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AopNote {
    @Pointcut("execution(* com.spring.gll.controller.*.a(..))")
    public void aop(){}
    @Before("aop()")
    public void before(){
        System.out.println("****");
    }
    @After("aop()")
    public void after(){
        System.out.println("~~~~");
    }
}
